package com.zhu.user.util;

import com.zhu.user.model.User;
import com.zhu.user.service.AuthService;
import com.zhu.util.ContextUtil;

/**
 * Created by DELL on 2016/1/5.
 */
public class SysUtil {

    private static AuthService authService;

    static{
        authService = ContextUtil.getBean("authService", AuthService.class);
    }

    public static User getCurrentUser(){
        return authService.getCurrentUser();
    }

    public static String getCurrentUsername(){
        return authService.getCurrentUsername();
    }
}
